Optimal. Leaf size=76 \[ -\frac{(a-b) \sin ^7(c+d x)}{7 d}+\frac{(3 a-2 b) \sin ^5(c+d x)}{5 d}-\frac{(3 a-b) \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0586209, antiderivative size = 76, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3676, 373} \[ -\frac{(a-b) \sin ^7(c+d x)}{7 d}+\frac{(3 a-2 b) \sin ^5(c+d x)}{5 d}-\frac{(3 a-b) \sin ^3(c+d x)}{3 d}+\frac{a \sin (c+d x)}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3676
Rule 373
Rubi steps
\begin{align*} \int \cos ^7(c+d x) \left (a+b \tan ^2(c+d x)\right ) \, dx &=\frac{\operatorname{Subst}\left (\int \left (1-x^2\right )^2 \left (a-(a-b) x^2\right ) \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \left (a-(3 a-b) x^2+(3 a-2 b) x^4-(a-b) x^6\right ) \, dx,x,\sin (c+d x)\right )}{d}\\ &=\frac{a \sin (c+d x)}{d}-\frac{(3 a-b) \sin ^3(c+d x)}{3 d}+\frac{(3 a-2 b) \sin ^5(c+d x)}{5 d}-\frac{(a-b) \sin ^7(c+d x)}{7 d}\\ \end{align*}
Mathematica [A] time = 0.28332, size = 75, normalized size = 0.99 \[ \frac{\sin (c+d x) ((897 a-113 b) \cos (2 (c+d x))+6 (27 a-13 b) \cos (4 (c+d x))+15 a \cos (6 (c+d x))+2286 a-15 b \cos (6 (c+d x))+206 b)}{3360 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.081, size = 92, normalized size = 1.2 \begin{align*}{\frac{1}{d} \left ( b \left ( -{\frac{\sin \left ( dx+c \right ) \left ( \cos \left ( dx+c \right ) \right ) ^{6}}{7}}+{\frac{\sin \left ( dx+c \right ) }{35} \left ({\frac{8}{3}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{4}+{\frac{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{3}} \right ) } \right ) +{\frac{\sin \left ( dx+c \right ) a}{7} \left ({\frac{16}{5}}+ \left ( \cos \left ( dx+c \right ) \right ) ^{6}+{\frac{6\, \left ( \cos \left ( dx+c \right ) \right ) ^{4}}{5}}+{\frac{8\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}{5}} \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.0054, size = 86, normalized size = 1.13 \begin{align*} -\frac{15 \,{\left (a - b\right )} \sin \left (d x + c\right )^{7} - 21 \,{\left (3 \, a - 2 \, b\right )} \sin \left (d x + c\right )^{5} + 35 \,{\left (3 \, a - b\right )} \sin \left (d x + c\right )^{3} - 105 \, a \sin \left (d x + c\right )}{105 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.52069, size = 163, normalized size = 2.14 \begin{align*} \frac{{\left (15 \,{\left (a - b\right )} \cos \left (d x + c\right )^{6} + 3 \,{\left (6 \, a + b\right )} \cos \left (d x + c\right )^{4} + 4 \,{\left (6 \, a + b\right )} \cos \left (d x + c\right )^{2} + 48 \, a + 8 \, b\right )} \sin \left (d x + c\right )}{105 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]